package com.som.quanlydiem;

import java.io.IOException;

public class QuanLyDiem {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("Welcome to bkacad mark manager.");
		System.out.println("-------------------------------");
		DanhSach ds = new DanhSach();
		do {
			System.out.println("1. Record Studens information");
			System.out.println("2. Display sorted list");
			System.out.println("3. Exit");
			System.out.println("What do you want (1,2,3)");
			char answer = 's';
			try {
				answer = (char) System.in.read();
			} catch (IOException e) {
				e.printStackTrace();
			}
			
			
			if (answer == '1') {
				SinhVien sv = new SinhVien();
				sv.input();
				ds.themSV(sv);
				
				
			} else if(answer == '2') {
				
			} else if(answer == '3') {
				break;
			} else {
				continue;
			}
				
	
		} while (true);
		System.out.println("End.");
		
	}

}